package com.cyzy.controller;

import com.cyzy.dto.ResponseData;
import com.cyzy.service.TMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/TMessage")
public class TMessageController {
@Autowired
    private TMessageService tMessageService;
    @RequestMapping("/getTMessage")
    public ResponseData getTMessage(String userid) {
        //我是大帅哥
     return  tMessageService.getTMessageById(userid);
    }
}
